<?php include PATH_VIEWS . 'common/header.php'; ?> 
<div class="main">
    <?php include PATH_VIEWS . 'common/left.php'; ?>
    <div class="main_right welcome_right" id="slide">
        <dl>
            <dt><h3>操作说明 <span>[关闭/展开]</span></h3></dt>
            <dd class="border">
                <span>以下红色边框的表单是必填项 。</span>
            </dd>
        </dl>
        <dl>
            <dt class="bottom">
            <h4>添加后台菜单分组</h4>
            </dt>
            <dd>
                <form id="form2" name="form1" method="post" action="<?php echo URL;?>">
                    <table class="system_envir from_demo">                  
                        <tr>
                            <td>菜单分组名称</td>
                            <td class="email"><input id="menuVal" type="text" name="Fname" value="" maxlength="20"/></td>
                            <td id="tishi">字符长度：2-16个</td>
                        </tr>
                        <tr>
                            <td>排序</td>
                            <td class="sort"><input id="sort" type="text" name="Fsort" value="1" maxlength="2"/></td>
                            <td class="sort">数值越小，排列越前，数值大小范围：1-99</td>
                        </tr>
                        <tr>
                            <td>说明</td>
                            <td colspan="2">勾选下面的菜单则有权限操作下面菜单对应的页面</td>
                        </tr>
                        <tr>
                            <td colspan="3" class="pading">
                                <?php foreach ($menu_arr[0] as $key => $ls) { ?>
                                    <div class="meun_group">
                                        <h3><input type="checkbox" name="FcatIds[]" value="<?php echo $key ?>" onclick="firstCheck(this)"/><?php echo $ls ?></h3>
                                        <?php foreach ($menu_arr[$key] as $key2 => $ls2) { ?>        
                                            <dl>
                                                <dt><input  type="checkbox" name="FcatIds[]" value="<?php echo $key2 ?>" onclick="secondCheck(this)"/><?php echo $ls2 ?></dt>
                                                <dd>
                                                    <?php foreach ($menu_arr[$key2] as $key3 => $ls3) { ?>
                                                        <label><input id="subCheck" type="checkbox" name="FcatIds[]" value="<?php echo $key3 ?>"/><?php echo $ls3 ?></label>       
                                                    <?php } ?>
                                                </dd>
                                            </dl>
                                        <?php } ?>
                                    </div>
                                <?php } ?>
                            </td>
                        </tr>
                        <tr>
                            <td></td>
                            <td class="subbtn" colspan="2">
                                <input class="ok" type="submit" name="ok" value="确认提交"/>
                                <input  class="cancel" onclick="location.href='<?php echo str_replace('&way=AA', '&way=SS', URL); ?>'" value="取消"/>
                            </td>
                        </tr>
                    </table>
                </form>
            </dd>
        </dl>
    </div>
</div>
<?php include PATH_VIEWS . 'common/footer.php'; ?>